import 'package:flutterproject/generated/json/base/json_field.dart';
import 'package:flutterproject/generated/json/notice_bean.g.dart';
import 'dart:convert';

@JsonSerializable()
class NoticeBean {

	double? id;
	dynamic createTime;
	dynamic updateTime;
	dynamic flag;
	dynamic lang;
	String? title;
	String? content;
	int? publishTime;
	dynamic state;
  
  NoticeBean();

  factory NoticeBean.fromJson(Map<String, dynamic> json) => $NoticeBeanFromJson(json);

  Map<String, dynamic> toJson() => $NoticeBeanToJson(this);

  NoticeBean copyWith({double? id, dynamic createTime, dynamic updateTime, dynamic flag, dynamic lang, String? title, String? content, int? publishTime, dynamic state}) {
      return NoticeBean()..id= id ?? this.id
			..createTime= createTime ?? this.createTime
			..updateTime= updateTime ?? this.updateTime
			..flag= flag ?? this.flag
			..lang= lang ?? this.lang
			..title= title ?? this.title
			..content= content ?? this.content
			..publishTime= publishTime ?? this.publishTime
			..state= state ?? this.state;
  }
    
  @override
  String toString() {
    return jsonEncode(this);
  }
}